package com.neusoft.SPNursingHome.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.neusoft.SPNursingHome.po.ClientMealInfo;
import com.neusoft.SPNursingHome.po.MealRecord;
import com.neusoft.SPNursingHome.po.ResponseBean;

import java.util.List;

public interface MealRecordService {
    ResponseBean<List<MealRecord>> listAll();

    ResponseBean<MealRecord> getById(Integer id);

    ResponseBean<IPage<ClientMealInfo>> listByClientAndFilter(
            long page, long size,
            Integer clientId,
            String startDay, String endDay,
            String foodType, String foodName, String mealTime
    );

    ResponseBean<Void> create(MealRecord record);
    ResponseBean<Void> update(MealRecord record);
    ResponseBean<Void> deleteById(Integer id);
}
